var objectFromKeysValues = function(keys, values) {
	var result = new Object();
	
	if(!keys || !values) {
		throw new Error("Invalid argument: Keys or values not defined.");
	}
	
	if (keys.length !== values.length) {
		throw new Error("Invalid argument: Size mismatch between keys and values arrays when creating a new object.");
	}
	
	for ( var i = 0; i < keys.length; i++) {
		result[keys[i]] = values[i];
	}
	
	return result;
};